<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 500px;
            height: 500px;
            background: green;
            display: flex;
            /* 主轴 column 横向排列 row 水平排列

                column-reverse 反向横向排列 
                row-reverse 反向水平排列 
               */

            /* flex-direction:row-reverse; */

            /* 调整主轴的对齐方式
                flex-end  
                flex-star 
                center
                space-between 两端对齐
                space-around 距离环绕 左右两端距离一样

                主轴是什么方向就往什么方向 上下或者左右
            */
            /* justify-content: space-around; */

            /* 调整侧轴 align-items
            
                flex-end  
                flex-star 
                center
            */
            align-items: flex-start;

            /* flex-direction:  
                主轴
            row; */
            flex-direction: column;

            /* 折行显示 */

            flex-wrap:  wrap;

            /* 控制折行后的行间距
                flex-end  
                flex-star 
                center
                space-between 两端对齐
                space-around 距离环绕 左右两端距离一样
            */
            align-content: space-between;
            

        
        }


        .box div{
            width: 100px;
            height: 100px;
            border: 1px red solid;
        }

    </style>
</head>
<body>
    

    <div class="box">
        <div>11</div>
        <div>22</div>
        <div>33</div>
        <div>44</div>
        <div>44</div>
        <div>44</div>
        <div>44</div>
        <div>44</div>
        <div>44</div>

    </div>

</body>
</html>